package com.fortune.dto.in.productCategory;
/**
 * 
 * @author ran
 *
 */

import org.hibernate.validator.constraints.NotBlank;

import io.swagger.annotations.ApiModelProperty;

public class PProduceCategoryAddDto {
	@NotBlank(message="商品分类名称不能为空")
	@ApiModelProperty(required=true, example="商品分类名称")
	private String name;
	@ApiModelProperty(required=true, example="上级分类ID，如果为空则为顶级分类")
	private String pid;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	@Override
	public String toString() {
		return "PProduceCategoryAddDto{" +
				"name='" + name + '\'' +
				", pid='" + pid + '\'' +
				'}';
	}
}
